package io.renren.modules.doc.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.doc.entity.EnumConfigEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;

@Mapper
public interface EnumConfigDao extends BaseMapper<EnumConfigEntity> {
    
    @Select("SELECT DISTINCT enum_type FROM sys_enum_config")
    List<String> getAllEnumTypes();
    
    @Select("SELECT * FROM sys_enum_config WHERE enum_type = #{enumType} ORDER BY order_num")
    List<EnumConfigEntity> getEnumsByType(String enumType);
}
